package com.lengxf.aPlugins.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDateTime;


@AllArgsConstructor
@Schema(description = "EVENT_POINT_GROUP_CONFIG")
@Data
public class EventPointGroupConfigEntity  implements SqlGenerator{

    @Schema(description = "ID")
    private Long id;

    /**
     * NAME
     */
    @Schema(description = "NAME")
    private String name;

    /**
     * TYPE
     */
    @Schema(description = "TYPE")
    private Integer type;

    /**
     * CREATION_TIME
     */
    @Schema(description = "CREATION_TIME")
    private LocalDateTime creationTime;

    /**
     * CREATION_USER
     */
    @Schema(description = "CREATION_USER")
    private String creationUser;

    /**
     * LAST_MODIFIED_TIME
     */
    @Schema(description = "LAST_MODIFIED_TIME")
    private LocalDateTime lastModifiedTime;

    /**
     * LAST_MODIFIED_USER
     */
    @Schema(description = "LAST_MODIFIED_USER")
    private String lastModifiedUser;

    public EventPointGroupConfigEntity() {
        this.creationTime = LocalDateTime.now();
        this.lastModifiedTime = LocalDateTime.now();
        this.creationUser = "admin";
        this.lastModifiedUser = "admin";
    }
}
